package io.sage.modules.statistics.dao;

import java.util.List;
import java.util.Map;

import io.sage.modules.statistics.vo.BStatisVo;
import org.apache.ibatis.annotations.Param;

import io.sage.modules.statistics.entity.BStatisticsWindDirection;
import io.sage.modules.statistics.entity.BStatisticsWindDirectionExample;

public interface BStatisticsWindDirectionMapper {
    int countByExample(BStatisticsWindDirectionExample example);

    int deleteByExample(BStatisticsWindDirectionExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(BStatisticsWindDirection record);

    int insertSelective(BStatisticsWindDirection record);

    List<BStatisticsWindDirection> selectByExample(BStatisticsWindDirectionExample example);

    BStatisticsWindDirection selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") BStatisticsWindDirection record, @Param("example") BStatisticsWindDirectionExample example);

    int updateByExample(@Param("record") BStatisticsWindDirection record, @Param("example") BStatisticsWindDirectionExample example);

    int updateByPrimaryKeySelective(BStatisticsWindDirection record);

    int updateByPrimaryKey(BStatisticsWindDirection record);

    /**
	 * 风向列表
	 * @param example
	 * @return
	 */
	List<BStatisticsWindDirection> selectStatisticsWindDirectionList(Map<String, Object> params);

	/**
	 * 批量添加传感器的风向
	 * @param list
	 * @return
	 */
	int saveWindDirectionList(@Param("list")List<BStatisticsWindDirection> list);

    /**
     * 根据库房id查询记录
     * @param params
     * @return
     */
    List<BStatisVo> selectListByWarehouseId(Map params);
}
